package com.donger.business.modules.upms.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.donger.business.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author xyx
 * @since 2019-01-12
 */
@Data
@Accessors(chain = true)
public class SysUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id")
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    /**
     * 状态  0：禁用   1：正常
     */
    private String status;

    private String avatar;

    private String phone;


    private Long deptId;

    /**
     * 用户类型  0 超级管理员 1 租户下管理员 2 普通用户
     */
    private String type;


    private String wxOpenid;

    /**
     * 码云唯一标识
     */
    @ApiModelProperty(value = "码云唯一标识")
    private String giteeLogin;

    private String dingId;

}
